function [data] = benefits( days,x )
p0=100;
data=[];
pant=p0;
pt=p0;
for d=1:days
    
    random = x(ceil(rand()*10000));
    delta=0;
    
    
    if(0<=random && random< 3/36)
        delta=-1/8;
    elseif(3/36  <= random && random < 10/36)
        delta=0;
    elseif(10/36 <= random && random < 26/36)
        delta=1/8;
    elseif(26/36 <= random && random < 34/36)
        delta=1/2;
    elseif(34/36 <= random && random < 1)
        delta=1;
    end
    
    pt=pt+p0*delta;
    data(d)=pt-pant;
    pant=pt;
end
  

end

